package demoMod.plugins.mod.sts;

import com.intellij.openapi.project.Project;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class GlobalStatus {
    public static boolean isModProject(Project project) {
        String projectBasePath = project.getBasePath();
        if (projectBasePath == null) projectBasePath = "";
        return new File(projectBasePath + "/src/main/resources/ModTheSpire.json").exists();
    }

    public static List<Project> project = new ArrayList<>();
}
